﻿using _2112A_2_MES._sujiahao;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace _2112A_2_MES.ChuBoWens
{
    public interface IWmTransferRepository : IApplicationService 
    {
        /// <summary>
        /// 获取调拨转移表
        /// </summary>
        /// <param name="transfername"></param>
        /// <param name="fromwarehousename"></param>
        /// <param name="towarehousename"></param>
        /// <param name="clientId"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        Task<InterSelect<object>> GetWmTransferList(string? transfername, string? fromwarehousename, string? towarehousename, string? clientId, int pageIndex, int pageSize);

        /// <summary>
        /// 新增调拨转移
        /// </summary>
        /// <param name="wmTransfer"></param>
        /// <returns></returns>
        Task<int> AddWmTransfer(WmTransfer wmTransfer);

        /// <summary>
        /// 删除调拨转移表
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteWmTransfer(int id);

        /// <summary>
        /// 获取调拨转移
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<WmTransfer> GetWmTransfer(int id);

        /// <summary>
        /// 修改调拨转移
        /// </summary>
        /// <param name="wmTransferDTO"></param>
        /// <returns></returns>
        Task<int> UpdateWmTransfer(WmTransferDTO wmTransferDTO);
    }
}
